package datastore;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ContactList {

	public ContactList(String keyUserMail, List<Contact> contacts){
		this.keyUserMail = keyUserMail;
		this.contacts = contacts;
	}
	
	@PrimaryKey
    @Persistent
    private String keyUserMail;
	
	@Persistent(mappedBy="contactList")
	private List<Contact> contacts;
	
	
	
}
